package com.jshoperxms.entity;

import javax.persistence.*;

/**
 * Created by sdywcd on 2018/10/5.
 * Des:
 */
@Entity
@Table(name = "yd_status_info_t", schema = "jshoperxms", catalog = "")
public class YdStatusInfoT {
    private String id;
    private int totalbiaoyang;
    private String status;
    private long createtime;
    private String creatorid;
    private long updatetime;
    private int versiont;
    private int totalyuedu;
    private int totalleafs;
    private int totalshare;
    private int totalstrees;
    private String wxopenid;
    private String memberid;
    private int nextydper;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "TOTALBIAOYANG", nullable = false)
    public int getTotalbiaoyang() {
        return totalbiaoyang;
    }

    public void setTotalbiaoyang(int totalbiaoyang) {
        this.totalbiaoyang = totalbiaoyang;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "CREATORID", nullable = false, length = 25)
    public String getCreatorid() {
        return creatorid;
    }

    public void setCreatorid(String creatorid) {
        this.creatorid = creatorid;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "TOTALYUEDU", nullable = false)
    public int getTotalyuedu() {
        return totalyuedu;
    }

    public void setTotalyuedu(int totalyuedu) {
        this.totalyuedu = totalyuedu;
    }

    @Basic
    @Column(name = "TOTALLEAFS", nullable = false)
    public int getTotalleafs() {
        return totalleafs;
    }

    public void setTotalleafs(int totalleafs) {
        this.totalleafs = totalleafs;
    }

    @Basic
    @Column(name = "TOTALSHARE", nullable = false)
    public int getTotalshare() {
        return totalshare;
    }

    public void setTotalshare(int totalshare) {
        this.totalshare = totalshare;
    }

    @Basic
    @Column(name = "TOTALSTREES", nullable = false)
    public int getTotalstrees() {
        return totalstrees;
    }

    public void setTotalstrees(int totalstrees) {
        this.totalstrees = totalstrees;
    }

    @Basic
    @Column(name = "WXOPENID", nullable = false, length = 45)
    public String getWxopenid() {
        return wxopenid;
    }

    public void setWxopenid(String wxopenid) {
        this.wxopenid = wxopenid;
    }

    @Basic
    @Column(name = "MEMBERID", nullable = false, length = 25)
    public String getMemberid() {
        return memberid;
    }

    public void setMemberid(String memberid) {
        this.memberid = memberid;
    }

    @Basic
    @Column(name = "NEXTYDPER", nullable = false)
    public int getNextydper() {
        return nextydper;
    }

    public void setNextydper(int nextydper) {
        this.nextydper = nextydper;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        YdStatusInfoT that = (YdStatusInfoT) o;

        if (totalbiaoyang != that.totalbiaoyang) return false;
        if (createtime != that.createtime) return false;
        if (updatetime != that.updatetime) return false;
        if (versiont != that.versiont) return false;
        if (totalyuedu != that.totalyuedu) return false;
        if (totalleafs != that.totalleafs) return false;
        if (totalshare != that.totalshare) return false;
        if (totalstrees != that.totalstrees) return false;
        if (nextydper != that.nextydper) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (creatorid != null ? !creatorid.equals(that.creatorid) : that.creatorid != null) return false;
        if (wxopenid != null ? !wxopenid.equals(that.wxopenid) : that.wxopenid != null) return false;
        if (memberid != null ? !memberid.equals(that.memberid) : that.memberid != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + totalbiaoyang;
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (int) (createtime ^ (createtime >>> 32));
        result = 31 * result + (creatorid != null ? creatorid.hashCode() : 0);
        result = 31 * result + (int) (updatetime ^ (updatetime >>> 32));
        result = 31 * result + versiont;
        result = 31 * result + totalyuedu;
        result = 31 * result + totalleafs;
        result = 31 * result + totalshare;
        result = 31 * result + totalstrees;
        result = 31 * result + (wxopenid != null ? wxopenid.hashCode() : 0);
        result = 31 * result + (memberid != null ? memberid.hashCode() : 0);
        result = 31 * result + nextydper;
        return result;
    }
}
